/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.persistence.brokersInterface;

import java.util.List;
import systole.domain.clinicalInformation.ClinicalInformation;
import systole.exceptions.ExceptionDAO;
import systole.synchronization.remote.entities.ClinicalInfoRemote;

/**
 *
 * @author jmj
 */
public interface ClinicalInfoSyncBroker {

    /**
     *
     * @param clinicalInfoRemote
     * @throws ExceptionDAO
     */
    public void saveClinicalInfoRemote(ClinicalInfoRemote clinicalInfoRemote) throws ExceptionDAO;

    /**
     *
     * @return ClinicalInfoRemote list
     * @throws ExceptionDAO
     */
    public List<ClinicalInfoRemote> getClinicalInfoToUpdate() throws ExceptionDAO;

    /**
     *
     * @return
     * @throws ExceptionDAO
     */
    public List<ClinicalInformation> getClinicalInfoToUpload() throws ExceptionDAO;

    /**
     *
     * @param remoteId
     * @return
     * @throws ExceptionDAO
     */
    public ClinicalInformation getClinicalInfoByRemoteId(int remoteId) throws ExceptionDAO;

    /**
     *
     * @param clinicalInfo
     * @return
     * @throws ExceptionDAO
     */
    public ClinicalInfoRemote getClinicalInfoRemoteByClinicalInfo(ClinicalInformation clinicalInfo) throws ExceptionDAO;

    /**
     * 
     * @return
     * @throws ExceptionDAO
     */
    public int getLastRemoteClinicalInfoIdSynchronized() throws ExceptionDAO;
}
